#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int 	i = 0,j = 10, k = 2, s = 0;
for (;;)
{
	i += k;
	if (s>  j)
	{
		printf("%d", s); break;
	}
	s += i;

}
	
	return 0;
}